import Vue from 'vue'
import Vuex from 'vuex'
import router from '../router'
import user from './module/user'
// import care
import authRouter from  '../router/authRouter'
import goods from './module/goods'
import order from './module/order'
import administrator from './module/administrator'
 
Vue.use(Vuex)

const store = new Vuex.Store({
    state: {

    },
    getters: {

    },
    mutations:{
        addAuthRouter(){
            router.addRoute(authRouter);
        }
    },
    actions: {

    },
    modules: {
        user,
        goods,
        order,
        administrator
    }
})

export default store;